﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ShuffleTheArray
{
    public class Solution
    {
        public int[] Shuffle(int[] nums, int n)
        {
            var ns = new int[n * 2];
            for (int i = 0; i < n; i++)
            {
                ns[i * 2] = nums[i];
                ns[i * 2 + 1] = nums[i + n];
            }

            return ns;
        }
    }
}
